﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage2.master" CodeFile="Default.aspx.cs" Inherits="product_Mask_child_Default" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>产品中心</title>
    <link rel="stylesheet" href="/static/css/childrenMask.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <section class="content">
        <main>
            <div class="content">
                <div class="main-logo" id="children_logo"></div>
                <div class="main-title" id="children_main_title">
                    <span>当前操作：</span>
                    <span>产品中心</span>
                    <span>/</span>
                    <span>口罩</span>
                    <span>/</span>
                    <span>儿童口罩</span>
                    <div style="float: right; margin-right: 20px; font-size: 14px; color: white; cursor: pointer;">
                        <a href="/product/Mask/Default.aspx">
                            <img style="height: 30px; margin-top: 5px;" src="../../../static/img/SSSS.png" /></a>
                    </div>
                </div>
                <div class="main-content">
                    <div id="childrenPic1"></div>
                    <div id="childrenPic2"></div>
                    <%=HtmlStr %>
                    <div class="main-content-page">
                        <%=PageHtmlStr %>
                    </div>
                </div>
            </div>

        </main>
        <div style="display: none">
            <input type="text" runat="server" value="18" id="ReNum" />
            <input type="text" runat="server" value="2" id="PageNum" />
            <input type="text" runat="server" value="1" id="NowPageNum" />
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script>
        SetPage('jump', 1);
        function SetPage(sign, num) {
            var ReNum = $("#ContentPlaceHolder_ReNum").val();
            var PageNum = $("#ContentPlaceHolder_PageNum").val();
            var NowPageNum = $("#ContentPlaceHolder_NowPageNum").val();
            document.getElementById("html_page_" + NowPageNum).style.display = "none";
            $("#totalNumbers").html(ReNum);
            $("#totalPage").html(PageNum);
            document.getElementById("nowpage_" + NowPageNum).className = "";
            NowPageNum = parseInt(NowPageNum);
            switch (sign) {
                case "first":
                    NowPageNum = 1;
                    break;
                case "next":
                    NowPageNum = NowPageNum + 1;
                    break;
                case "previous":
                    NowPageNum = NowPageNum - 1;
                    break;
                case "last":
                    NowPageNum = PageNum;
                    break;
                case "jump":
                    NowPageNum = num;
                    break;
            }
            if (NowPageNum <= 0) { NowPageNum = 1; }
            if (NowPageNum >= PageNum) { NowPageNum = PageNum; }
            $("#ContentPlaceHolder_NowPageNum").val(NowPageNum);
            document.getElementById("nowpage_" + NowPageNum).className = "nowPage";
            document.getElementById("html_page_" + NowPageNum).style.display = "";
        }

    </script>
</asp:Content>

